package com.itheima.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_todo" )
public class Todo  implements Serializable {

	private static final long serialVersionUID =  6949920357242598593L;

	/**
	 * 唯一uid
	 */
	@Id
   	@Column(name = "uid" )
	private String uid;

	/**
	 * 管理员uid
	 */
   	@Column(name = "admin_uid" )
	private String adminUid;

	/**
	 * 内容
	 */
   	@Column(name = "text" )
	private String text;

	/**
	 * 表示事项是否完成（0：未完成 1：已完成）
	 */
   	@Column(name = "done" )
	private Integer done;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

}
